#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import pylrc

from utils import tp_logging
from utils import tp_exceptions


logger = tp_logging.get_logger('lrc_parser')

def import_lrc(path):
    with open(path) as lrc_file:
        lrc_str = ''.join(lrc_file.readlines())
        return pylrc.parse(lrc_str)
